using System.Collections;
using System.Collections.Generic;
using System.Net;
using Cz;
using Cz.CzRpcReflection;

namespace Test
{
    public class HttpMethods : CzMethodList
    {
        public Dictionary<string, object> TestParams(Dictionary<string, object> parameters)
        {
            if(parameters == null)
                parameters = new Dictionary<string, object>();
            parameters["callback"] = true;
            parameters["server_info"] = "中文测试";
            return parameters;
        }
        
        public List<Hashtable> GetParam(Dictionary<string, object> parameters)
        {
            return Program.mysql.ExecTable($"select * from gamepara limit 10");
        }

        public string Default(Dictionary<string, object> parameters)
        {
            return "Default";
        }
    }
}